package lab02.test12;

public class Circle extends Shape {

    //属性：半径
    double radius;


    @Override
    double area() {
        return 3.14 * radius * radius;
    }

    @Override
    double perimeter() {
        return 2 * 3.14 * radius;
    }

    Circle() {}

}
